package com.share.order.service;
import com.baomidou.mybatisplus.extension.service.IService;
import com.device.domain.vo.EndOrderVo;
import com.share.api.order.domain.OrderInfo;
import com.share.api.order.domain.SubmitOrderVo;

import java.util.List;

public interface OrderInfoService extends IService<OrderInfo> {

    /**
     * 获取订单列表
     */
    List<OrderInfo> selectOrderInfoList(OrderInfo orderInfo);

    /**
     * 获取未完成订单
     */
    OrderInfo getNoFinishOrder(Long userId);

    /**
     * 扫码-创建订单
     * @param orderForm
     */
    Long saveOrder(SubmitOrderVo orderForm);

    void endOrder(EndOrderVo endOrderVo);

    List<OrderInfo> selectUserOrderInfoList(Long userId);

    OrderInfo selectOrderInfoById(Long id);

    OrderInfo getByOrderNo(String orderNo);

    void processPaySucess(String orderNo);
}
